import request from '@/utils/request'

// #region 型号设置
// 获取工艺路径定义清单
export function getProcessingList(query) {
  return request({
    url: '/web/processing',
    method: 'post',
    data: { eventId: 1100, para: query }
  })
}
// 创建一个工艺路径定义
export function creatProcessing(val) {
  return request({
    url: '/web/processing',
    method: 'post',
    data: { eventId: 1101, para: val }
  })
}
// 更新一个工艺路径定义
export function updateProcessing(val) {
  return request({
    url: '/web/processing',
    method: 'post',
    data: { eventId: 1102, para: val }
  })
}
// 删除一个工艺路径定义
export function deleteProcessing(val) {
  return request({
    url: '/web/processing',
    method: 'post',
    data: { eventId: 1103, para: val }
  })
}
// 获取工艺基础信息
export function getRootList(query) {
  return request({
    url: '/web/processing',
    method: 'post',
    data: { eventId: 1110, para: query }
  })
}
// 保存工艺基础信息
export function saveRootList(query) {
  return request({
    url: '/web/processing',
    method: 'post',
    data: { eventId: 1111, para: query }
  })
}
// 保存工艺基础信息
export function downloadByOrder(query) {
  return request({
    url: '/web/rmes',
    method: 'post',
    data: { eventId: 1601, para: query }
  })
}
// 保存工艺基础信息
export function downloadByRwk(query) {
  return request({
    url: '/web/rmes',
    method: 'post',
    data: { eventId: 1606, para: query }
  })
}
// #endregion

